import request from "@/utils/request";

// 查询目录信息列表
export const getdirectoryListApi = (params) =>
  request({
    method: "get",
    url: "/subject/directory",
    params,
  });

// 查询目录信息详情
export const getdirectoryApi = (id) =>
  request({
    method: "get",
    url: "/subject/directory/" + id,
  });

// 增加目录信息
export const adddirectoryApi = (data) =>
  request({
    method: "post",
    url: "/subject/directory",
    data,
  });
// 修改目录信息
export const editdirectoryApi = (data) =>
  request({
    method: "put",
    url: "/subject/directory/" + data.id,
    data,
  });
// 删除目录信息
export const deldirectoryApi = (id) =>
  request({
    method: "DELETE",
    url: "/subject/directory/" + id,
  });
